package db.entity;

import java.io.Serializable;
import javax.persistence.*;

/**
 * The primary key class for the padelapse database table.
 * 
 */
@Embeddable
public class PadeLapsePK implements Serializable {
	//default serial version id, required for serializable classes.
	private static final long serialVersionUID = 1L;

	private String padID;

    @Temporal( TemporalType.TIMESTAMP)
	private java.util.Date startTime;

    public PadeLapsePK() {
    }
	public String getPadID() {
		return this.padID;
	}
	public void setPadID(String padID) {
		this.padID = padID;
	}
	public java.util.Date getStartTime() {
		return this.startTime;
	}
	public void setStartTime(java.util.Date startTime) {
		this.startTime = startTime;
	}

	public boolean equals(Object other) {
		if (this == other) {
			return true;
		}
		if (!(other instanceof PadeLapsePK)) {
			return false;
		}
		PadeLapsePK castOther = (PadeLapsePK)other;
		return 
			this.padID.equals(castOther.padID)
			&& this.startTime.equals(castOther.startTime);

    }
    
	public int hashCode() {
		final int prime = 31;
		int hash = 17;
		hash = hash * prime + this.padID.hashCode();
		hash = hash * prime + this.startTime.hashCode();
		
		return hash;
    }
}